<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flex布局修改主轴方向</title>
    <style>
        .box{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            width: 150px;
            height: 120px;
            background-color: pink;
        }

        img{
            width: 32px;
            height: 32px;
            background-color: gray;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="" alt="">
        <span>媒体</span>
    </div>
</body>
</html>